﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using DataAccess;
using DataAccess.Classes;

namespace Webmau
{
    public partial class DanhSachPhongTro : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                PopulateControls();
            }

        }
        private void PopulateControls()
        {
            try
            {
                string id = Request.QueryString["ID"] ?? "";
                DiaDiem1 data = DiaDiem1.LayID(Convert.ToInt32(id));
                if (data != null)
                {
                    lblTitle.Text = "Địa điểm: " + data.TenDiaDiem;
                    lblDes.Text = "Thông tin: " + data.ThongTin;
                }
            }
            catch
            {

            }
        }
    }
}